<%--
  Created by IntelliJ IDEA.
  User: ThinkPad
  Date: 2021/12/7
  Time: 11:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%@ include file="validateLogin.jsp"%>
<div class="top">
    <div class="top-con w1200">
        <p class="t-con-l f-l">您好，欢迎${user==null?'':user.userName}来到宅客微购</p>
        <ul class="t-con-r f-r">
            <li><a href="/SheepShoppingMall/frontEnd/personData.jsp?currentIndex=1">我 (个人中心)</a></li>
            <li><a href="#">我的购物车</a></li>
            <li><a href="#">我的订单</a></li>
            <div style="clear:both;"></div>
        </ul>
        <div style="clear:both;"></div>
    </div>
</div>

<!--logo search 开始-->
<div class="hd-info1 w1200">
    <div class="logo f-l">
        <h1><a href="#" title="中林网站"><img src="/SheepShoppingMall/frontEnd/images/logo.jpg" /></a></h1>
    </div>
    <div class="dianji f-r">
        <c:if test="${!loginState}">
            <div class="btn1">
                <button onclick="javascript:location.href='/SheepShoppingMall/frontEnd/register.jsp'" class="btn1-l">注册</button>
                <button onclick="javascript:location.href='/SheepShoppingMall/frontEnd/login.jsp'" class="btn1-r">登录</button>
                <div style="clear:both;"></div>
            </div>
            <button class="btn2">商家入口    ></button>
        </c:if>
    </div>
    <div class="search f-r">
        <div class="srh">
            <form action="/SheepShoppingMall/CommodityServlet?opr=selectCommodity" method="post">
                <div class="ipt f-l">
                    <input name="name" type="text" placeholder="搜索商品..." ss-search-show="sp" />
                </div>
                <button class="f-r">搜 索</button>
            </form>
            <div style="clear:both;"></div>
        </div>
        <ul class="sp2">
            <li><a href="#">绿豆</a></li>
            <li><a href="#">大米</a></li>
            <li><a href="#">驱蚊</a></li>
            <li><a href="#">洗面奶</a></li>
            <li><a href="#">格力空调</a></li>
            <li><a href="#">洗发护发</a></li>
            <li><a href="#">葡萄 </a></li>
            <li><a href="#">脉动</a></li>
            <li><a href="#">海鲜水产</a></li>
            <div style="clear:both;"></div>
        </ul>
    </div>

    <div style="clear:both;"></div>
</div>
</body>
</html>
